<#assign numbers=['Short','Integer','Long','Float','Double','BigDecimal']>
package com.geqian.web.common.dto;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.io.Serializable;
import lombok.Data;
import java.util.Date;
import java.sql.Time;


/**
* ${description}
* @author ${author}
* @date ${date}
*/
@Data
public class ${className}Dto implements Serializable {

<#if dataList??>
    <#list dataList as data>
    /**
    *  ${data.columnComment}
    */
    <#if data.fieldType == 'Date'>
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    </#if>
    <#if !data.autoIncrement>
        <#if data.fieldType == 'String' && data.required>
    @NotBlank(message = "${data.columnComment}不能为空或空串")
        <#elseif data.required>
    @NotNull(message = "${data.columnComment}不能为空")
        </#if>
    </#if>
    private ${data.fieldType} ${data.fieldName};

    </#list>
</#if>
    @JsonIgnore
    private static final long serialVersionUID = 1L;

}